/**   
 * 项目名：化工企业安全生产信息化管理平台
 * 日期：    2020-03-17 14:00:29  
 * Copyright (c) 2015- -版权所有     
 */

package com.joysuch.wwyt.edu.repository;

import java.util.List;

import com.joysuch.wwyt.edu.entity.EduTrainningPlanCourse;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;

/**
 * EduTrainningPlanCourseDao
 *
 */
public interface EduTrainningPlanCourseDao
        extends JpaRepository<EduTrainningPlanCourse, Long>, QuerydslPredicateExecutor<EduTrainningPlanCourse> {
    public Page<EduTrainningPlanCourse> findAll(Specification<EduTrainningPlanCourse> spec, Pageable pageable);

    public EduTrainningPlanCourse save(EduTrainningPlanCourse bean);

    public void delete(EduTrainningPlanCourse bean);

    public void deleteByTrainningPlanId(Long id);

    public List<EduTrainningPlanCourse> findByTrainningPlanId(Long id);
}
